/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Sucursales.java
 *
 * Created on 22/05/2011, 10:48:07 PM
 */

package GUI;

import Interfaz.InterfazControl;
import javax.swing.ImageIcon;

/**
 *
 * @author Vane
 */
public class Sucursales extends javax.swing.JFrame {

    /** Creates new form Sucursales */
	private InterfazControl laInterfaz;
    public Sucursales(InterfazControl laInterfaz) {
		this.laInterfaz=laInterfaz;
        initComponents();
		this.setLocationRelativeTo(null); // Cmabiar icono de java en ventana
        this.setIconImage(new ImageIcon("src/imagenes/marketplus2.png").getImage());
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jBSucursales = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(550, 420));
        setResizable(false);
        getContentPane().setLayout(null);

        jBSucursales.setText("Ir a la Pág Principal");
        jBSucursales.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBSucursalesActionPerformed(evt);
            }
        });
        getContentPane().add(jBSucursales);
        jBSucursales.setBounds(350, 330, 160, 23);

        jLabel2.setFont(new java.awt.Font("Tempus Sans ITC", 3, 14));
        jLabel2.setText("Nuestras Sucursales de Supermercados");
        getContentPane().add(jLabel2);
        jLabel2.setBounds(170, 10, 280, 30);

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel3.setText("RIF: J-122231245          Desarrollado por: Group Delivery");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(110, 360, 320, 20);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/marketplus.png"))); // NOI18N
        getContentPane().add(jLabel1);
        jLabel1.setBounds(10, 10, 110, 80);

        jLabel4.setFont(new java.awt.Font("Tempus Sans ITC", 3, 18));
        jLabel4.setText(" Market Plus");
        getContentPane().add(jLabel4);
        jLabel4.setBounds(240, 40, 120, 30);

        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/surcusal1.jpg"))); // NOI18N
        getContentPane().add(jLabel5);
        jLabel5.setBounds(30, 130, 100, 70);

        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/sucursal2.jpg"))); // NOI18N
        getContentPane().add(jLabel6);
        jLabel6.setBounds(30, 240, 140, 110);

        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/sucursal3.jpg"))); // NOI18N
        getContentPane().add(jLabel7);
        jLabel7.setBounds(360, 100, 160, 70);

        jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/sucursal4.jpg"))); // NOI18N
        getContentPane().add(jLabel8);
        jLabel8.setBounds(350, 200, 160, 120);

        jLabel9.setText("Market Plus Los Palos Grandes");
        getContentPane().add(jLabel9);
        jLabel9.setBounds(30, 100, 190, 14);

        jLabel10.setText("Market Plus Prado del Este");
        getContentPane().add(jLabel10);
        jLabel10.setBounds(30, 210, 170, 30);

        jLabel11.setText("Plus Gama San Martin");
        getContentPane().add(jLabel11);
        jLabel11.setBounds(220, 250, 130, 14);

        jLabel12.setText("Plus Gama Los Caobos");
        getContentPane().add(jLabel12);
        jLabel12.setBounds(210, 120, 150, 14);

        pack();
    }// </editor-fold>//GEN-END:initComponents

	private void jBSucursalesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBSucursalesActionPerformed
		// TODO add your handling code here:
		Principal irPrincipal=new Principal(laInterfaz);
		irPrincipal.setVisible(true);
		this.dispose();
	}//GEN-LAST:event_jBSucursalesActionPerformed

    /**
    * @param args the command line arguments
    */
    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBSucursales;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    // End of variables declaration//GEN-END:variables

}
